Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(openapi): add base url #308

Merged
merged 7 commits into from
Sep 28, 2023
Merged

fix(openapi): add base url #308

merged 7 commits into from
Sep 28, 2023

Conversation

BlairCurrey
Copy link
Contributor

@BlairCurrey BlairCurrey commented Sep 27, 2023

Changes proposed in this pull request

  • adds rafiki.money as base path

image

Context

The issues suggests maybe using rafiki.money as the base url but I opted for openpayments.guide because that's what it originally was. https://github.com/interledger/open-payments/blob/5d39b2ef5f202e6378555b790730f9465ecd6f97/openapi/resource-server.yaml#L35C3-L39 This makes the base url consistent with existing examples.

@changeset-bot
Copy link

changeset-bot bot commented Sep 27, 2023

⚠️ No Changeset found

Latest commit: 24beffe

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify
Copy link

netlify bot commented Sep 27, 2023

Deploy Preview for openpayments-preview ready!

Name Link
🔨 Latest commit 24beffe
🔍 Latest deploy log https://app.netlify.com/sites/openpayments-preview/deploys/6515a70c8ddfbf0008bff3f2
😎 Deploy Preview https://deploy-preview-308--openpayments-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@BlairCurrey BlairCurrey marked this pull request as ready for review September 27, 2023 21:33
@BlairCurrey BlairCurrey changed the title refactor(openapi): change url fix(openapi): add base url Sep 27, 2023
@@ -112,7 +112,7 @@ paths:
New Incoming Payment for $25:
value:
id: 'https://openpayments.guide/incoming-payments/08394f02-7b7b-45e2-b645-51d04e7c330c'
walletAddress: 'https://openpayments.guide/alice/'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe walletAddress values should still have /alice. That seems like the case to me but I could be wrong @mkurapov / @sabineschaller

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, the wallet address remains the same, just the baseUrl changes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this and similar are now https://rafiki.money/alice/

@@ -0,0 +1,5 @@
---
'@interledger/open-payments': major
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this constitutes a major change. In fact, I'm not sure this changes anything in the open-payments package itself at all.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@@ -32,8 +32,8 @@ info:
contact:
email: [email protected]
servers:
- url: '/'
description: 'Server for wallet address subresources or Connection resources (ie https://openpayments.guide/alice)'
- url: 'https://openpayments/'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if I have a preference, but rafiki.money might be nice to have if we are going to include some code snippets in the documentation that do use rafiki.money. I would connect with Radu /Melissa/Mohammed for this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will change to rafiki.money. Melissa confirmed that there will be code snippets in the docs that are intended to be used with rafiki.money. https://github.com/interledger/open-payments-snippets She also noted the openpayments.guide domain might change as well but in any case it seems like the rafiki.money url will be more useful.

@@ -112,7 +112,7 @@ paths:
New Incoming Payment for $25:
value:
id: 'https://openpayments.guide/incoming-payments/08394f02-7b7b-45e2-b645-51d04e7c330c'
walletAddress: 'https://openpayments.guide/alice/'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, the wallet address remains the same, just the baseUrl changes

@BlairCurrey BlairCurrey merged commit 9b8a116 into main Sep 28, 2023
10 checks passed
@BlairCurrey BlairCurrey deleted the bc/303/add-base-url branch September 28, 2023 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add baseUrl to OP spec
3 participants